home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / TreeView / TreeButton.h < prev    next >
Encoding:
Text File  |  1995-12-20  |  1.2 KB  |  40 lines

  1. //
  2. //    TreeButton.h -- a class to attach to tree data structures
  3. //        Written by Don Yacktman (c) 1993 by Don Yacktman.
  4. //                All rights reserved.
  5. //
  6. //    I doubt this will be useful for much beyond what it does in the demo
  7. //        program supplied in this directory.
  8. //
  9. //        You may use and copy this class freely as long as you
  10. //        comply with the following terms:
  11. //            (1) If you use this class in an application which you
  12. //                intend to sell commercially, as shareware, or otherwise,
  13. //                you may only do so with express written permission
  14. //                of the author.  Use in applications which will
  15. //                be distributed free of charge is encouraged.
  16. //            (2) You must include the source code to this object and
  17. //                all accompanying documentation with your application,
  18. //                or provide it to users if requested, free of charge.
  19. //            (3) Do not remove the author's name or any of the
  20. //                copyright notices
  21. //
  22.  
  23. #import <appkit/appkit.h>     // superclass is in there
  24. #import <stdio.h>
  25.  
  26. @interface TreeButton:Button
  27. {
  28.     id myTreeNode;    // this is the tree node we represent
  29. }
  30.  
  31. + initialize;
  32. + setCellClass:classId;
  33. - initFrame:(const NXRect *)frameRect;
  34. - wasSelected:sender;
  35. - treeNode;
  36. - setTreeNode:node;
  37.  
  38. @end
  39.  
  40.